<?php echo $header; ?>


<?php echo $column_left; ?><?php echo $column_right; ?>

<div class="sixteen columns">
    <script type="text/javascript"><!--
        //window.onload = boss_header_move_search;
        //addLoadEvent(boss_header_move_search);
        $(document).ready(function() {
            boss_header_move_mobile();
        });
        $(window).resize(function() {
            boss_header_move_mobile();
        });

        function boss_header_move_mobile()	{
            if(getWidthBrowser() < config_width){
                if ($("#logo").html()) {
                    $("#m-logo").html($("#logo").html());
                    $("#logo").html("");
                }
                if ($("#welcome").html()) {
                    $("#m-welcome").html($("#welcome").html());
                    $("#welcome").html("");
                }
                if ($("#search-form").html()) {
                    $("#m-search").html($("#search-form").html());
                    $("#search-form").html("");
                    $("#search").css("display", "none");
                    $('.button-search').bind('click', function() {
                        url = $('base').attr('href') + 'index.php?route=product/search';

                        var filter_name = $('input[name=\'filter_name\']').attr('value');

                        if (filter_name) {
                            url += '&filter_name=' + encodeURIComponent(filter_name);
                        }

                        location = url;
                    });
                    $('#header input[name=\'filter_name\']').bind('keydown', function(e) {
                        if (e.keyCode == 13) {
                            url = $('base').attr('href') + 'index.php?route=product/search';

                            var filter_name = $('input[name=\'filter_name\']').attr('value');

                            if (filter_name) {
                                url += '&filter_name=' + encodeURIComponent(filter_name);
                            }

                            location = url;
                        }
                    });
                }
            } else {
                if ($("#m-logo").html()) {
                    $("#logo").html($("#m-logo").html());
                    $("#m-logo").html("");
                }
                if ($("#m-welcome").html()) {
                    $("#welcome").html($("#m-welcome").html());
                    $("#m-welcome").html("");
                }
                if ($("#m-search").html()) {
                    $("#search-form").html($("#m-search").html());
                    $("#m-search").html("");
                    $("#search").css("display", "block");
                }

            }
        }
        //--></script>
    <div id="content">
        <?php echo $content_top; ?>
        <h1 style="display: none;"><?php echo $heading_title; ?></h1>
        <?php echo $content_bottom; ?>
    </div>

</div>


<?php echo $footer; ?>